package com.supergdtop.www.run.tools;

/**
 * 检测手机号码工具类
 * Created by Asum on 2016/7/14 0014.
 */
public class CheckMobileTools {
    public static boolean isMobile(String mobile) {
        if (mobile == null || mobile.length() == 0) {
            return false;
        }

        double mobileNum = NumberTools.toDouble(mobile, 0);
        if (mobileNum == 0) {
            return false;
        }

        if (mobile.length() != 11) {
            return false;
        }

        return true;
    }
}
